/**
 * @author Maximilian Csuk
 * @author Konrad Paumann
 * @author Bernhard Denner
 */

public class Multiplication extends BinOp {

	public Multiplication(Node leftChild, Node rightChild) {
		super(leftChild, rightChild);
	}
	
	/**
	 * Returns the result of the evaluation with the left and right child
	 */
	public Number eval() {
		Number left = super.getLeftChild().eval();
		Number right = super.getRightChild().eval();
		return left.mul(right);
	}
}
